﻿@{
    Layout = null;
}
@using Models;

<div class="bjui-pageHeader"></div>
<div class="bjui-pageContent">
    <form action="EditArticleType" id="ArticleType_edit" data-toggle="validate" data-alertmsg="false" autocomplete="off">
        <table class="table table-condensed table-hover" width="100%">
            <tbody>
                @if (Model != null)
                {
                    <tr>
                        <td>
                            <label class="control-label x100">类型名称：</label>
                        </td>
                        <td>
                            <input type="hidden" id="Id" name="Id" value="@Model.Id" />
                            <input type="text" runat="server" name="ArticleType_name" id="ArticleType_name" data-rule="类型名称:required" maxlength="15" value="@Model.ArticleType_name" size="15" placeholder="[必填] 类型名称">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label class="control-label x100">状态：</label>
                        </td>
                        <td>
                            @if (Model.Disable == 1)
                            {
                                <input runat="server" type="checkbox" id="Disable" name="Disable" value="1" checked data-toggle="icheck" data-label="正常">
                            }
                            else
                            {
                                <input runat="server" type="checkbox" id="Disable" name="Disable" value="1" data-toggle="icheck" data-label="正常">
                            }
                        </td>
                    </tr>
                }
                else
                {

                    <tr>
                        <td>
                            <label class="control-label x100">类型名称：</label>
                        </td>
                        <td>
                            <input type="text" runat="server" name="ArticleType_name" id="ArticleType_name" data-rule="类型名称:required" maxlength="15" value="" size="15" placeholder="[必填] 类型名称">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label class="control-label x100">状态：</label>
                        </td>
                        <td>
                            <input runat="server" type="checkbox" id="Disable" name="Disable" value="1" checked data-toggle="icheck" data-label="正常">

                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">取消</button></li>
        <li><button type="submit" class="btn-green" data-icon="save">提交</button></li>
    </ul>
</div>